package org.demo.base.auth.domain;

import lombok.*;

import java.util.Collection;
import java.util.Set;

/**
 * @author tomdog
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Role {

    private Long id;

    /**
     * 权限key
     */
    private String roleKey;

    /**
     * 权限描述
     */
    private String desc;

    /**
     * 角色所拥有的权限
     */
    private Collection<Permission> permissions;
}
